package com.un10.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.un10.entity.receivinglist;
import com.un10.mapper.receivinglistMapper;
import com.un10.service.receivinglistService;

@Service
public class receivinglistServiceImpl implements receivinglistService {
	@Autowired
	private receivinglistMapper receivinglistmapper;

	@Override
	public int getCount() {
		// TODO Auto-generated method stub
		return receivinglistmapper.getCount();
	}

	@Override
	public List<receivinglist> findAllreceiving(int page, int limit, String userName) {
		// TODO Auto-generated method stub
		return receivinglistmapper.getAllreceivinglist(page, limit, userName);
	}

	@Override
	public Integer findreceivingAdd(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return receivinglistmapper.consigneeAdd(map);
	}

	@Override
	public Integer findreceivingUpdate(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return receivinglistmapper.consigneeUpdate(map);
	}

	@Override
	public Integer findreceivingDelete(int htID) {
		// TODO Auto-generated method stub
		return receivinglistmapper.consigneeDelete(htID);
	}

}
